<template>
    <li @click="handleClick">
        {{ mydata }}
    </li>
</template>

<script>
import store from './store';


export default {
    props: ["mydata"],

    methods: {
        handleClick() {
            //发布
            store.publish(this.mydata)
        }
    }

}
</script>